﻿using System.Runtime.InteropServices.ComTypes;
using System.Runtime.InteropServices;

namespace SilverlightViewport.Common.Interop
{
    [ComImport, Guid("0000011B-0000-0000-C000-000000000046"), 
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IOleContainer : IParseDisplayName
    {
        [PreserveSig]
        new int ParseDisplayName([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc, [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName, out uint pchEaten, [MarshalAs(UnmanagedType.Interface)] out IMoniker ppmkOut);
        [PreserveSig]
        int EnumObjects([In] uint grfFlags, [MarshalAs(UnmanagedType.Interface)] out IEnumUnknown ppEnum);
        [PreserveSig]
        int LockContainer([In] int fLock);
    }
}
